//回退按钮操作
$("#back").on("click", function () {
    window.location.href = "/AppInfo/manager/backend/user/list";
});

$.ajax({
    type: "GET",
    url: "/AppInfo/manager/backend/user/getdatadictionary",
    dataType: "json",
    success: function (data) {
        $("#userType").html("");
        var options = "<option value=\"\">--请选择--</option>";
        for (var i = 0; i < data.length; i++) {
            options += "<option value=\"" + data[i].id + "\">" + data[i].valueName + "</option>";
        }
        $("#userType").html(options);
    },
    error: function (data) {//当访问时候，404，500 等非200的错误状态码
        alert("数据加载失败！");
    }
});